import sys
from socket import *

serverPort = 12000
# IP地址/主机名,如果是主机名DNS lookup将自动进行转换
serverName = 'hostname'
clientSockt = socket(AF_INET, SOCK_DGRAM)
message = input('Input lowercase sentence:')
clientSockt.sendto(message, (serverName,serverPort))

modifiedMessage, serverAddress = clientSockt.recvfrom(2048)

print(modifiedMessage)

clientSockt.close()
